package cn.kuang.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author 徽州大都督
 * @date 2020/7/27
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tab_user")
public class User {

    @TableId(type = IdType.AUTO)
    private Integer uid;

    private String username;
    private String password;
    private String name;
    //@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date birthday;
    private String sex;
    private String telephone;
    private String email;
    @TableField(exist = false)
    private String code;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableLogic
    private Integer deleted;

}
